package com.chuangjiangx.member.manager.web.web.basic.request;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ToString
public class ModifyMemberRequest {

    /**
     * 会员id
     */
    @NotNull(message = "{member.memberId.null}")
    private Long memberId;

    /**
     * 会员姓名
     */
    @Length(max = 20, message = "{member.memberName.length}")
    private String name;

    /**
     * 性别
     */
    @NotNull(message = "{member.sex.null}")
    private Byte sex;

    /**
     * 生日
     */
    private Date birthday;


    /**
     * 手机号
     */
    private String mobile;

    /**
     * 验证码
     */
    private String verifyCode;
}
